package net.dopan.pigframe.gateway.util;

import com.alibaba.ttl.TransmittableThreadLocal;

/**
 * @Package: net.dopan.pigframe.gateway.util
 * @Title: RibbonVersionHolder
 * @Description:
 * @author: 刘宽
 * @date: 2018/9/2 16:35
 */
public class RibbonVersionHolder {
    private static final ThreadLocal<String> context = new TransmittableThreadLocal<>();


    public static String getContext() {
        return context.get();
    }

    public static void setContext(String value) {
        context.set(value);
    }

    public static void clearContext() {
        context.remove();
    }

}
